package com.app.medicalcontrol.fragment.Robot;

import android.os.Bundle;
import android.support.annotation.Nullable;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;

import com.app.medicalcontrol.R;
import com.app.medicalcontrol.basis.BaseMainFragment;
import com.app.medicalcontrol.fragment.Robot.child.RobotListFragment;


/**
 * Created by YoKeyword on 16/6/3.
 */
public class RobotFragment extends BaseMainFragment {

    public static RobotFragment newInstance() {
        RobotFragment fragment = new RobotFragment();
        return fragment;
    }

    @Nullable
    @Override
    public View onCreateView(LayoutInflater inflater, @Nullable ViewGroup container, @Nullable Bundle savedInstanceState) {
        View view = inflater.inflate(R.layout.fragment_tab_base, container, false);
        return view;
    }

    @Override
    public void onLazyInitView(@Nullable Bundle savedInstanceState) {
        super.onLazyInitView(savedInstanceState);
        if (findChildFragment(RobotListFragment.class) == null) {
            loadRootFragment(R.id.fl_first_container, new RobotListFragment());
        }
    }

}
